package operations;

import javax.swing.JTextArea;

public class FindReplaceContext {

	private FindInterface Finder;
	private ReplaceInterface Replacer;

	public FindInterface getFinder() {
		 return Finder;
		}

	public void setFinder(FindInterface Finder) {
		 this.Finder = Finder;
		}
		
	public void FindPattern(JTextArea text, String SearchedWord){
		Finder.FindPattern(text,SearchedWord);
		}

	public ReplaceInterface getReplacer() {
		 return Replacer;
		}

	public void setReplacer(ReplaceInterface Replacer) {
		 this.Replacer = Replacer;
		}
		
	public void ReplacePattern(JTextArea text, String SearchedWord,String ReplacedWord){
		Replacer.ReplacePattern(text,SearchedWord,ReplacedWord);
		}
}
